//
// Decompiled by Jadx - 362ms
//
package fp;

import android.view.MotionEvent;
import android.view.View;
import de.robv.android.xposed.XC_MethodHook;
import fn.j;
import fn.x;
import fn.y;
import fo.c;
import java.util.Iterator;
import me.plusne.common.Json.JsonHookStatic;
import o.a;
import org.luckypray.dexkit.query.matchers.MethodMatcher;
import org.luckypray.dexkit.result.MethodData;

@a("DY")
public final class d extends x {
    public static int cp = 0;
    public static int cq = -1;

    public static void cr(d dVar, XC_MethodHook.MethodHookParam methodHookParam, int i) {
        dVar.getClass();
        JsonHookStatic jsonHookStatic = y.by;
        jsonHookStatic.setComment(((Boolean) methodHookParam.args[i]).booleanValue());
        jsonHookStatic.setOpenComment(((Boolean) methodHookParam.args[i]).booleanValue());
        if (!j.ae("auto_play_isComment")) {
            jsonHookStatic.setComment(false);
        }
        if (!jsonHookStatic.isComment()) {
            ab.cs();
        }
    }

    public final void a() {
        j.bd(cg.a.h.getClassName(), cg.a.k.getMethodName(), new Object[]{MotionEvent.class, new a()});
        j.bd(View.class.getName(), "onTouchEvent", new Object[]{MotionEvent.class, new b()});
        j.bd("com.ss.android.ugc.aweme.feed.ui.LongPressLayout$2", "run", new Object[]{new c()});
        j.bd(cg.a.h.getClassName(), cg.a.g.getMethodName(), new Object[]{new d()});
        j.bd(cg.a.h.getClassName(), cg.a.h.getMethodName(), new Object[]{new e()});
        Iterator it = c.z(MethodMatcher.create().declaredClass(cg.a.l.getClassName()).paramTypes(cg.a.l.getParamTypeNames())).iterator();
        while (it.hasNext()) {
            j.be((MethodData) it.next(), new f(this));
        }
    }
}
